package fr.sedoo.sos.xml;

import java.util.HashMap;
import java.util.Map;

import fr.sedoo.sos.domain.Phenomenon;

public class PhenomenaUtils 
{
//	public static String RIVER_DISCHARGE = "RIVER_DISCHARGE";
//	public static String SEA_SURFACE_TEMPERATURE = "SEA_SURFACE_TEMPERATURE";
//	public static String SEA_SURFACE_SALINITY = "SEA_SURFACE_SALINITY";
	
	public static String RIVER_DISCHARGE_URN = "http://mmisw.org/ont/ioos/parameter/river_discharge";
	public static String SEA_SURFACE_TEMPERATURE_URN = "http://mmisw.org/ont/cf/parameter/sea_surface_temperature";
	public static String SEA_SURFACE_SALINITY_URN = "http://mmisw.org/ont/cf/parameter/sea_surface_salinity";
	
	private static Map<String, Phenomenon> phenomena = new HashMap<String, Phenomenon>();
	
	static
	{
		phenomena.put(RIVER_DISCHARGE_URN, new Phenomenon("River discharge", RIVER_DISCHARGE_URN, "m3/s"));
		phenomena.put(SEA_SURFACE_TEMPERATURE_URN, new Phenomenon("Sea surface temperature", SEA_SURFACE_TEMPERATURE_URN, "Cel"));
		phenomena.put(SEA_SURFACE_SALINITY_URN, new Phenomenon("Sea surface salinity", SEA_SURFACE_SALINITY_URN, "psu"));
	}
	
	public static Phenomenon getPhenomenonByUrn(String urn)
	{
		return phenomena.get(urn);
	}
	
}
